package com.woniu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.entity.PageResult;
import com.woniu.pojo.Organization;
import com.woniu.pojo.Team;
import com.woniu.vo.OrganizationQueryVo;

import java.util.List;

/**
 * <p>
 * 机构表 服务类
 * </p>
 *
 * @author xiaotang
 * @since 2022-10-10
 */
public interface IOrganizationService extends IService<Organization> {

    /**
     * 搜索+分页
     * @param currentPage
     * @param pageSize
     * @param organizationQueryVo
     * @return
     */
    PageResult search(Integer currentPage, Integer pageSize, OrganizationQueryVo organizationQueryVo);

    /**
     * 根据机构id来修改机构状态
     * @return
     */
    boolean updateStatusById(Long organizationId);

    /**
     * 查询所有
     * @return
     */
    List<Organization> searchAll();

    List<Team> queryTeamByOrganizationId(Long organizationId);
}
